<ul class="pagination pagination-sm no-margin pull-right">
    <li><a class="first">首页</a></li>
	<li><a class="pre">上一页</a></li>
	<li><a class="next">下一页</a></li>
	<li><a class="last">尾页</a></li>
	<li><a class="pageCurrent">当前页(1)</a></li>
	<li><a class="rowCount">总记录数(0)</a></li>
	<li><a class="pageCount">总页数(0)</a></li>

</ul>
<script type="text/javascript">
	$(function (){
		$(".pagination").on("click",".first,.pre,.next,.last",doJumpPage);
		var pageCurrent=1;
		$(".pagination").data("pageCurrent",pageCurrent);
		getPageObject();
	})
	function doJumpPage(){
		let type=$(this).prop("class");
		debugger;
		pageCurrent=$(".pagination").data("pageCurrent");
		var pageCount=$(".pagination").data("pageCount");
		if(type=="first"){
			pageCurrent=1;
		}else if(type=="pre"){
			if(pageCurrent>1){pageCurrent--;}
		}else if(type=="next"){
			if(pageCurrent<pageCount){pageCurrent++;}
		}else if(type=="last"){
			pageCurrent=pageCount;
		}
		$(".pagination").data("pageCurrent",pageCurrent);
		getPageObject();
	}
	function setPageObject(pageObject){
		$(".pageCount").html("总页数("+pageObject.pageCount+")");
		$(".pageCurrent").html("当前页("+pageObject.pageCurrent+")");
		$(".rowCount").html("总记录数("+pageObject.rowCount+")");
		$(".pagination").data("pageCurrent",pageObject.pageCurrentt);
		$(".pagination").data("pageCount",pageObject.pageCount);
	}

</script>








